package vip.george.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author george
 * @since 2023/7/5
 * <p></p>
 */
@MapperScan(basePackages = {"vip.george.common.mapper"})
@SpringBootApplication
public class ScUserApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(ScUserApplication.class, args);
        String userName = applicationContext.getEnvironment().getProperty("user.nickname");
        String userAge = applicationContext.getEnvironment().getProperty("user.age");
        System.err.println("user name :"+userName+"; age: "+userAge);
    }
}
